<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
		<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
	<body>
		<input type="checkbox" name="checkbox" id="xx" value="" checked="checked" />
		<script>
			$(function(){
				 var checkobj=$("input:checkbox[name='checkbox']:checked");
				 var checkobjid=$(checkobj).prop("id");
				 console.info(checkobjid);
			})
			
			
		</script>
	</body>
</html>
